Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for building with CMake #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikkoi
Copy link

@mikkoi mikkoi commented Oct 17, 2019

Build tested in Visual Studio.
Some tests have been deactivated because they failed to compile.

It is important to append our own cmake module directory
to the project wide CMAKE_MODULE_PATH.
Normally CMAKE_MODULE_PATH is empty when project is started
because the default module path is hard coded,
e.g. /usr/share/cmake/Modules. But if this project is included
into another project, the surrounding project might want to
override how we find_package() our dependendies.

Changed "${CMAKE_CURRENT_SOURCE_DIR}" to "${CMAKE_CURRENT_LIST_DIR}"
because while current source can change, the cmake sub directory
will always stay adjacent to this CMakeLists.txt file.

Signed-off-by: Mikko Johannes Koivunalho <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants